home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: alpet@airmail.net (Adam Peterson)
- Newsgroups: comp.lang.c
- Subject: Re: Help - pointer notation please...
- Date: Fri, 23 Feb 1996 05:22:15 GMT
- Organization: customer of Internet America
- Message-ID: <4gjc1r$o0h@news-f.iadfw.net>
- References: <4gjelv$2ek@news.mistral.co.uk>
- NNTP-Posting-Host: dal24-12.ppp.iadfw.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- mikebarnard@mistral.co.uk (Mike Barnard) wrote:
-
- >Hi.
-
- >I've read my C book. I've gotten th C FAQ. I've read the file
- >"ptrtutor.txt" a tutorial on pointers. But I havn't seen explained the
- >following. Can you help?
-
- >Sometimes when prototyping a function the function name is pre-fixed
- >by an asterisk. Why? What does it mean?
-
- >Putting an asterisk before a variable name declares it as a pointer
- >variable. Putting one before the variable in use means you want to
- >access the data pointed to. Why is there sometimes an asterisk AFTER a
- >variable?
-
- Putting the asterisk before the function name means the function
- returns a pointer...as for the second question, don't know. Never
- seen what you describe...
-
- Adam
-
-
-